import DefaultTheme from "vitepress/theme";
import type { App } from "vue";

import "element-plus/dist/index.css";
import "vxe-table/lib/style.css";

import ElementPlus from "element-plus";
import VXETable from "vxe-table";

import SWUI from "../../../packages"; // 自定义组件库
import "../../../styles/index.scss"
import "vitepress-theme-demoblock/dist/theme/styles/index.css";

import Demo from "vitepress-theme-demoblock/dist/client/components/Demo.vue";
import DemoBlock from "vitepress-theme-demoblock/dist/client/components/DemoBlock.vue";
import './style.css';
export default {
  ...DefaultTheme,
  enhanceApp({ app }: { app: App }) {
    // 第三方组件库
    app.use(ElementPlus);
    app.use(VXETable);

    // 自定义组件库
    app.use(SWUI);

    app.component("Demo", Demo); // 注册 <Demo> 组件
    app.component("DemoBlock", DemoBlock); // 注册 <DemoBlock> 组件
  },
};
